# Generated from qopcuaclient.pro.

#####################################################################
## tst_qopcuaclient Test:
#####################################################################

qt_add_test(tst_qopcuaclient
    SOURCES
        ../../common/backend_environment.h
        tst_client.cpp
    INCLUDE_DIRECTORIES
        ../../common
    PUBLIC_LIBRARIES
        Qt::OpcUa
        Qt::OpcUaPrivate
)

# Resources:
set(data_resource_files
    "../../open62541-testserver/pki/own/certs/open62541-testserver.der"
)

qt_add_resource(tst_qopcuaclient "data"
    PREFIX
        "/"
    FILES
        ${data_resource_files}
)


## Scopes:
#####################################################################

qt_extend_target(tst_qopcuaclient CONDITION QT_FEATURE_open62541_security AND QT_FEATURE_open62541 # special case
    DEFINES
        SERVER_SUPPORTS_SECURITY
)

# special case begin
if (WIN32)
    target_compile_definitions(tst_qopcuaclient PRIVATE TESTS_CMAKE_SPECIFIC_PATH)
endif()
# special case end
